package com.bsth.entity.schedule;

import com.bsth.entity.sys.SysUser;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by xu on 16/12/14.
 */
@MappedSuperclass
public class BEntity {

    /** 创建人 */
    @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
    private SysUser createBy;
    /** 修改人 */
    @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
    private SysUser updateBy;

    /** 创建日期 */
    @Column(updatable = false, name = "create_date")
    private Date createDate;
    /** 修改日期 */
    @Column(name = "update_date")
    private Date updateDate;

    public SysUser getCreateBy() {
        return createBy;
    }

    public void setCreateBy(SysUser createBy) {
        this.createBy = createBy;
    }

    public SysUser getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(SysUser updateBy) {
        this.updateBy = updateBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
